package com.yh.mapper;

import com.yh.javabean.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @Auther: als
 * @Date: 2024/5/31 - 05 - 31 - 11:58
 * @Description: com.yh.mapper
 * @version: 1.0
 */
@Mapper
public interface UserMapper {

    //查询user此表所有信息
    @Select("select * from user")
    List<User>selectAll();

    //根据uid查询信息
    @Select("select * from user where uid=#{uid}")
    User selectByUid(int uid);
}
